Hi,
I need your help ?
I try to display date/time info in a multi-language processwire setting.
Can you please indicate me which of the above solutions will work to display the different date/time formats on the respective lang page. At the moment the Date is only rendered the way I want in German but not on the English page. (My output for my date field in the backend is not formatted.)
The code below gives me this results:
German: Sa., 4. März 2023, 09:00
English: 2023/03/04 09:00:00
$datum = $concert->date;
$fmt = new \IntlDateFormatter('DE',
\IntlDateFormatter::FULL
);
$fmt->setPattern('E, d. LLLL yyyy, HH:mm');
echo $fmt->format($datum);